:root {
  --color-primary: #ad2c2c;
  --color-lightGrey: #d2d6dd;
  --color-grey: #5e5e5e;
  --color-darkGrey: #3f4144;
  --color-error: #d43939;
  --color-success: #28bd14;
  --grid-maxWidth: 120rem;
  --grid-gutter: 2rem;
  --font-size: 1.6rem;
  --font-family: "Roboto", sans-serif;
}

html,
body,
#app-container,
#app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

#app {
  display: flex;
  flex-direction: column;
  color: #333;
  background: #fafafa;
}

img {
  max-width: initial !important;
}

.hidden {
  display: none;
}

#app-footer {
  text-align: center;
  padding: 0.5em 1em;
  background: #333333;
  color: #c5c5c5;
  border-top: 1px solid #9e9e9e;
  font-size: 0.8em;
  transition-property: padding;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

.left {
  float: left;
}

.right {
  float: right;
}

#app-footer a {
  color: #ce6464;
}

#app-footer img {
  vertical-align: middle;
}

h1 {
  font-family: "Baloo 2", cursive;
  font-size: 5em;
  margin: 0.5em;
  transition-property: font-size, margin;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.2em;
  text-align: center;
  z-index: 1;
}

.gif {
  color: #ad2c2c;
}

.cap {
  color: #2e2e2e;
}

.button {
  display: flex;
  box-shadow: 0px 0px 5px 0px #00000054;
}

.button:active {
  box-shadow: 0px 0px 3px 0px #00000054;
}

.button:not(.icon-only) > img {
  margin-right: 0.3em;
}

.actions {
  padding: 2em;
  display: flex;
  border-top: 1px solid #9e9e9e;
}

.actions:empty {
  display: none;
}

.status {
  display: flex;
  justify-content: center;
}

#app-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.view {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.recording,
.preview {
  box-shadow: 0px 0px 5px 1px #00000054;
}

.recording {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
}

.content.crop > canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.content.crop > canvas.source {
  display: none;
}

.recording-card > footer {
  border-top: 1px solid #9e9e9e;
  margin-top: 18px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}

.tag,
.tag > a {
  display: flex;
  align-items: center;
}

.tag img {
  margin-right: 0.3em;
}

.crop {
  cursor: crosshair;
}

.playbar {
  flex: 1;
  margin: 0 10px;
  position: relative;
}

.playbar > input {
  height: 50%;
  margin: 0;
}

.playbar > input:disabled {
  opacity: 1;
}

.playbar > .trim-bar {
  border-top: 2px solid #ad2c2c;
  position: absolute;
  top: calc(50% + 4px);
}

.playbar > .trim-bar > .trim-start,
.playbar > .trim-bar > .trim-end {
  position: absolute;
  border: 6px solid #ad2c2c;
  border-bottom-color: transparent;
  cursor: pointer;
}

.playbar > .trim-bar > .trim-start {
  top: 0;
  left: 0;
  border-right-color: transparent;
}

.playbar > .trim-bar > .trim-end {
  top: 0;
  right: 0;
  border-left-color: transparent;
}

input[type="range"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.button.outline {
  border: none;
}

/* Home */

#app:not(.home) h1 {
  display: none;
}
